home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / lwlib / Makefile.in.in < prev    next >
Encoding:
Makefile  |  1995-07-08  |  5.3 KB  |  214 lines

  1. /* Makefile for Lucid Widget Library
  2.    Copyright (C) 1994 Lucid, Inc.
  3.    Copyright (C) 1995 Tinker Systems and INS Engineering Corp.
  4.    Copyright (C) 1994, 1995 Board of Trustees, University of Illinois
  5.  
  6. This file is part of the Lucid Widget Library.
  7.  
  8. The Lucid Widget Library is free software; you can redistribute it and/or 
  9. modify it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2, or (at your option)
  11. any later version.
  12.  
  13. The Lucid Widget Library is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of 
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with GNU Emacs; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  21.  
  22. /* Some people use these in paths they define.  We don't want their paths
  23.    getting changed on them. */
  24. #undef sparc
  25. #undef sun
  26. #undef unix
  27. #undef sgi
  28. #undef NeXT
  29.  
  30. srcdir=@srcdir@
  31. VPATH=@srcdir@
  32. C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
  33. C_SWITCH_SITE=@C_SWITCH_SITE@
  34.  
  35. SHELL=/bin/sh
  36.  
  37. CC=@CC@
  38. CFLAGS=@CFLAGS@
  39. CPP=@CPP@
  40. RANLIB=@RANLIB@
  41.  
  42. RM = rm -f
  43. AR = ar cq
  44. @SET_MAKE@
  45.  
  46. #define THIS_IS_YMAKEFILE
  47. #define NOT_C_CODE
  48. #include "../src/config.h"
  49.  
  50. #ifndef C_SWITCH_MACHINE
  51. #define C_SWITCH_MACHINE
  52. #endif
  53.  
  54. #ifndef C_SWITCH_SYSTEM
  55. #define C_SWITCH_SYSTEM
  56. #endif
  57.  
  58. #ifndef C_SWITCH_X_SYSTEM
  59. #define C_SWITCH_X_SYSTEM
  60. #endif
  61.  
  62. #ifndef C_SWITCH_X_MACHINE
  63. #define C_SWITCH_X_MACHINE
  64. #endif
  65.  
  66. #if defined (CONST_IS_LOSING)
  67. # define CONST_FLAG -DCONST_IS_LOSING
  68. #else
  69. # define CONST_FLAG
  70. #endif
  71.  
  72. #if defined (LWLIB_MENUBARS_LUCID)
  73. # define LWLIB_MENUBARS -DMENUBARS_LUCID
  74. #else
  75. # if defined (LWLIB_MENUBARS_MOTIF)
  76. #  define LWLIB_MENUBARS -DMENUBARS_MOTIF
  77. # else
  78. #  define LWLIB_MENUBARS
  79. # endif
  80. #endif
  81.  
  82. #if defined (LWLIB_SCROLLBARS_LUCID)
  83. # define LWLIB_SCROLLBARS -DSCROLLBARS_LUCID
  84. #else
  85. # if defined (LWLIB_SCROLLBARS_MOTIF)
  86. #  define LWLIB_SCROLLBARS -DSCROLLBARS_MOTIF
  87. # else
  88. #  if defined (LWLIB_SCROLLBARS_ATHENA)
  89. #   define LWLIB_SCROLLBARS -DSCROLLBARS_ATHENA
  90. #  else
  91. #   define LWLIB_SCROLLBARS
  92. #  endif
  93. # endif
  94. #endif
  95.  
  96. #if defined (LWLIB_DIALOGS_MOTIF)
  97. # define LWLIB_DIALOGS -DDIALOGS_MOTIF
  98. #else
  99. # if defined (LWLIB_DIALOGS_ATHENA)
  100. #  define LWLIB_DIALOGS -DDIALOGS_ATHENA
  101. # else
  102. #  define LWLIB_DIALOGS
  103. # endif
  104. #endif
  105.  
  106. #undef NEED_TOOLKIT
  107.  
  108. /* If Motif was chosen as the tookit for anything, then
  109.    LWLIB_USES_MOTIF should have gotten defined. */
  110. #if defined (LWLIB_USES_MOTIF)
  111. # ifndef NEED_TOOLKIT
  112. #  define NEED_TOOLKIT
  113. # endif
  114. # define NEED_MOTIF -DNEED_MOTIF
  115. # define MOTIF_SRCS lwlib-Xm.c
  116. # define MOTIF_OBJS lwlib-Xm.o
  117. #else
  118. # define NEED_MOTIF
  119. # define MOTIF_SRCS
  120. # define MOTIF_OBJS
  121. #endif
  122.  
  123. #if defined (LWLIB_MENUBARS_LUCID) || defined (LWLIB_SCROLLBARS_LUCID)
  124. # ifndef NEED_TOOLKIT
  125. #  define NEED_TOOLKIT
  126. # endif
  127. # define NEED_LUCID -DNEED_LUCID
  128. # define LUCID_SRCS lwlib-Xlw.c xlwmenu.c xlwscrollbar.c
  129. # define LUCID_OBJS lwlib-Xlw.o xlwmenu.o xlwscrollbar.o
  130. #else
  131. # define NEED_LUCID
  132. # define LUCID_SRCS
  133. # define LUCID_OBJS
  134. #endif
  135.  
  136. #if defined (LWLIB_SCROLLBARS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA)
  137. # ifndef NEED_TOOLKIT
  138. #  define NEED_TOOLKIT
  139. # endif
  140. # define NEED_ATHENA -DNEED_ATHENA
  141. # define ATHENA_SRCS lwlib-Xaw.c
  142. # define ATHENA_OBJS lwlib-Xaw.o
  143. #else
  144. # define NEED_ATHENA
  145. # define ATHENA_SRCS
  146. # define ATHENA_OBJS
  147. #endif
  148.  
  149. #ifdef ENERGIZE
  150. EZ_OBJS = energize/blpsheet.o energize/build.o energize/classbr_ps.o \
  151.           energize/ctreebr_ps.o energize/debuggerps.o \
  152.           energize/editmode.o energize/leb_psheet.o \
  153.           energize/projectdisp.o energize/projectps.o \
  154.           energize/search.o energize/target.o
  155. ENERGIZEP = -DENERGIZE
  156. EZ_SUBDIR = ez_dialog
  157. #endif
  158.  
  159. SRCS = lwlib.c MOTIF_SRCS LUCID_SRCS ATHENA_SRCS lwlib-utils.c $(EXT_SRCS) \
  160.        lwlib-config.c
  161. OBJS = lwlib.o MOTIF_OBJS LUCID_OBJS ATHENA_OBJS lwlib-utils.o $(EXT_OBJS) \
  162.        lwlib-config.o $(EZ_OBJS)
  163.  
  164. #ifdef NEED_TOOLKIT
  165. all:: $(EZ_SUBDIR) liblw.a
  166. #else
  167. all::
  168. #endif
  169.  
  170. ALL_CFLAGS = -I. C_SWITCH_MACHINE C_SWITCH_SITE C_SWITCH_X_SITE \
  171.          C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM \
  172.          C_SWITCH_SYSTEM NEED_LUCID NEED_MOTIF NEED_ATHENA \
  173.          LWLIB_MENUBARS LWLIB_SCROLLBARS LWLIB_DIALOGS \
  174.          $(ENERGIZEP) ${CFLAGS} CONST_FLAG
  175. .c.o:
  176.     $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
  177.  
  178. liblw.a: $(OBJS)
  179.     $(RM) $@
  180.     $(AR) $@ $(OBJS)
  181.     -if [ -n $(RANLIB) ]; then \
  182.       $(RANLIB) $@; \
  183.     fi
  184.  
  185. #ifdef ENERGIZE
  186. ez_dialog:
  187.     cd energize ; $(MAKE) $(MFLAGS)
  188. #endif
  189.  
  190. FRC.mostlyclean:
  191. mostlyclean: FRC.mostlyclean
  192.     rm -f liblw.a liblw_pure_*.a *.o
  193. clean: mostlyclean
  194. #ifdef ENERGIZE
  195.     cd energize ; $(MAKE) $(MFLAGS) clean
  196. #endif
  197. distclean: clean
  198.     rm -f Makefile Makefile.in .pure
  199. realclean: distclean
  200. extraclean: distclean
  201.     -rm -f *~ \#* m/?*~ s/?*~
  202.  
  203.  
  204. lwlib-config.o:    lwlib.h ../src/config.h
  205. lwlib-Xaw.o:    lwlib.h lwlib-internal.h lwlib-Xaw.h ../src/config.h
  206. lwlib-Xlw.o:    lwlib.h lwlib-internal.h lwlib-Xlw.h xlwmenu.h ../src/config.h
  207. lwlib-Xm.o:    lwlib.h lwlib-internal.h lwlib-utils.h lwlib-Xm.h
  208. lwlib-Xm.o:    ../src/config.h
  209. lwlib-utils.o:    lwlib-utils.h ../src/config.h
  210. lwlib.o:    lwlib.h lwlib-internal.h lwlib-utils.h ../src/config.h
  211. lwlib.o:    lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h ../src/config.h
  212. xlwmenu.o:    lwlib.h xlwmenu.h xlwmenuP.h ../src/config.h
  213. xlwscrollbar.o:    lwlib.h xlwscrollbar.h xlwscrollbarP.h ../src/config.h
  214.